//package com.cyj.springbootservice.filter;
//
//
//import com.cyj.springbootservice.interceptor.MyServletRequestWrapper;
//import org.springframework.stereotype.Component;
//import org.springframework.web.filter.OncePerRequestFilter;
//
//import javax.servlet.FilterChain;
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
///**
// * @description:
// * @Author C_Y_J
// * @create 2021-03-22 09:21
// **/
//@Component
//public class RequestReplaceFilter extends OncePerRequestFilter {
//
//    @Override
//    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
//        if (!(request instanceof MyServletRequestWrapper)) {
//            request = new MyServletRequestWrapper(request);
//        }
//        filterChain.doFilter(request, response);
//    }
//}
